"use strict";
cc._RF.push(module, 'e6762ZS99RKPo0ucDsEVZuR', 'roleHit');
// script/game/roleHit.js

"use strict";

cc.Class({
  "extends": cc.Component,
  properties: {},
  // LIFE-CYCLE CALLBACKS:
  onLoad: function onLoad() {
    this.role = this.node.parent.getComponent('role'); //this.hp = this.role.hp;
  },
  onCollisionEnter: function onCollisionEnter(other, self) {
    if (other.node.group == 'enemy' && other.tag == 2) {
      this.role.isHurt();
    }
  } // start () {
  // },
  // update (dt) {},

});

cc._RF.pop();